// 全局消息提示工具
import { createDiscreteApi } from 'naive-ui'

const { message, notification, dialog, loadingBar } = createDiscreteApi(
  ['message', 'notification', 'dialog', 'loadingBar']
)

// 挂载到window对象，方便全局使用
window.$message = message
window.$notification = notification
window.$dialog = dialog
window.$loadingBar = loadingBar

export { message, notification, dialog, loadingBar }
